package org.alanlau.demo.controller;

import org.alanlau.demo.entity.HouseInfo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * house控制器
 *
 * @author liukun
 * @version 1.0
 * @date 2020/9/12 10:35
 */
@RestController
@RequestMapping("/house")
public class HouseController {
    private Logger logger = LoggerFactory.getLogger(HouseController.class);

    @GetMapping("/data")
    public HouseInfo getData(String name) {
        return new HouseInfo(1L, "上海", "虹口", "东体小区");
    }
}
